package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购需求详细对象 phg_requirement_detail
 * 
 * @author coderChen
 * @date 2024-06-20
 */
public class PhgRequirementDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物料计划id */
    @Excel(name = "物料计划id")
    private String matPlanId;

    /** 销售订单Id */
    @Excel(name = "销售订单Id")
    private Long orderId;

    /** 产品id */
    @Excel(name = "产品id")
    private Long proId;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long reqNum;

    /** 原料id */
    @Excel(name = "原料id")
    private Long matId;

    /** 物料id */
    @Excel(name = "物料id")
    private Long bomId;

    /** 计划截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planEndDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMatPlanId(String matPlanId) 
    {
        this.matPlanId = matPlanId;
    }

    public String getMatPlanId() 
    {
        return matPlanId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setReqNum(Long reqNum) 
    {
        this.reqNum = reqNum;
    }

    public Long getReqNum() 
    {
        return reqNum;
    }
    public void setMatId(Long matId) 
    {
        this.matId = matId;
    }

    public Long getMatId() 
    {
        return matId;
    }
    public void setBomId(Long bomId) 
    {
        this.bomId = bomId;
    }

    public Long getBomId() 
    {
        return bomId;
    }
    public void setPlanEndDate(Date planEndDate) 
    {
        this.planEndDate = planEndDate;
    }

    public Date getPlanEndDate() 
    {
        return planEndDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("matPlanId", getMatPlanId())
            .append("orderId", getOrderId())
            .append("proId", getProId())
            .append("reqNum", getReqNum())
            .append("matId", getMatId())
            .append("bomId", getBomId())
            .append("planEndDate", getPlanEndDate())
            .toString();
    }
}
